import ansible_runner
result_ping = ansible_runner.run(private_data_dir='/home/dcxu/vscode/ansible/network',
                                 host_pattern='kingworth',
                                 module='ios_ping',
                                 module_args="dest='192.168.1.251'")

# result_command = ansible_runner.run(private_data_dir='/home/dcxu/vscode/ansible/network',
#                                     host_pattern='kingworth',
#                                     module='ios_command',
#                                     module_args="commands='show ip route'")
